package com.example.iceman.stepcounterapp;

/**
 * Created by iceman on 16/3/11 15:11
 * 邮箱：xubin865@pingan.com.cn
 */
public class StepUtil {
    /**
     * 简单点,按网上走路一小时消耗150卡计算.
     *
     * @param stepCount
     * @return
     */
    public static float calculateHeat(int stepCount) {
        return stepCount * 150 / (3600 * 3);
    }

    /**
     * 计算运动时间,按一秒钟3步来简单计算
     *
     * @param stepCount
     * @return 分钟数
     */
    public static int calculateTime(int stepCount) {
        return stepCount / (3 * 60);
    }
}
